package com.henry.controller;

import com.henry.config.UserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Henry
 * @date 2020/6/21 21:55
 */
@RestController
@RequestMapping("/user")
public class UserBeanController {
    @Autowired
    private UserBean userBean;

    @RequestMapping("")
    public String user(){
        return userBean.getName() +"-"+ userBean.getAge();
    }

}
